Repository navigation
Ingester: keep queries complete after renewing tokens in several zones - #7983
Merged
Merged
Conversation
kylestang
force-pushed
the
kyle/rebalance-fast-simple
branch
from
December 2, 2026 22:36
3fcf0b2 to
b5263d3
Compare
kylestang
marked this pull request as ready for review
December 2, 2026 22:37
alanprot
reviewed
Dec 3, 2026
danielblando
reviewed
Dec 3, 2026
Member
|
Can you also add this new field on the ring_http ? |
kylestang
force-pushed
the
kyle/rebalance-fast-simple
branch
from
December 3, 2026 22:35
b5263d3 to
3640511
Compare
kylestang
force-pushed
the
kyle/rebalance-fast-simple
branch
from
December 3, 2026 23:13
3640511 to
a6a5305
Compare
Renewing an ingester's tokens moves token ranges between ingesters that don't hold each other's data, so only one zone could be renewed per lookback period without queries missing data. The ring now stores a renewed_timestamp. For the lookback period after a renewal, queries using shuffle sharding with lookback include both sides of every moved range: - Subrings reaching the renewed ingester's new tokens keep including the previous owners, as for a newly registered ingester. - Every lookback subring includes the renewed ingester, since it may still hold data of tenants whose subring it left. The registered timestamp is left as it is. The write path and ownership shares use plain shuffle sharding and are unaffected. While a renewed ingester is unhealthy, its zone counts as failed for every tenant's reads, so queries fail rather than miss data. The renewed timestamp is also kept in the tokens file, so it survives a restart that removes the ingester from the ring. The lifecycler updates it before the renew CAS commits, so a concurrent heartbeat can't revert it. Older ingesters and queriers ignore the new field, so only renew in more than one zone once every component runs this version. Signed-off-by: Kyle Stang <kylestng@amazon.com>
kylestang
force-pushed
the
kyle/rebalance-fast-simple
branch
from
December 4, 2026 00:08
a6a5305 to
54a6247
Compare
alanprot
approved these changes
Dec 4, 2026
yeya24
approved these changes
Dec 4, 2026
3 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Renewing an ingester's tokens moves token ranges between ingesters that don't hold each other's data, so only one zone could be renewed per lookback period without queries missing data.
The ring now stores a renewed_timestamp. For the lookback period after a renewal, queries using shuffle sharding with lookback include both sides of every moved range:
The registered timestamp is left as it is. The write path and ownership shares use plain shuffle sharding and are unaffected. While a renewed ingester is unhealthy, its zone counts as failed for every tenant's reads, so queries fail rather than miss data.
The renewed timestamp is also kept in the tokens file, so it survives a restart that removes the ingester from the ring. The lifecycler updates it before the renew CAS commits, so a concurrent heartbeat can't revert it.
Older ingesters and queriers ignore the new field, so only renew in more than one zone once every component runs this version.
What this PR does:
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]docs/configuration/v1-guarantees.mdupdated if this PR introduces experimental flags